package com.xros.demo.fileserver.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @Author: mzp
 * @Description: 路由控制器
 * @Date: 2024/3/27 10:56
 * @Version: 1.0
 */
@Controller
@RequestMapping("/")
public class RouterController {


    @GetMapping
    public String goToIndex(){
        return "index.html";
    }


    @GetMapping("/page/upload")
    public String goToUploadFiles(){

        System.out.println("准备去上传文件辣！！！");
        return "upload.html";
    }

}
